import java.util.ArrayList;
import java.util.List;

public class ListSample {
	String str;
	List<String> list = new ArrayList();

	public static void main(String[] args) {
		ListSample listSample = new ListSample();
		listSample.list.add("deneme1");
		listSample.list.add("deneme2");

		// System.out.println(listSample.list);
		// listSample.list.clear();
		// System.out.println(listSample.list);

		listSample.ekranaYaz(listSample.list);

		for (String string : listSample.list) {
			System.out.println("str : " + string);
		}
	}

	void ekranaYaz(List list) {
		list.clear();
	}
}
